package db;

import java.util.List;

import bean.Message;


public interface IDAO {
	public Message connect(String db,String pwd,String tName);
	public Message save(Object o);
	public Message update(Object o);
	public Message saveOrUpdate(Object o);
	public Object get(Object id);
	public List getAll();
	public List search(String phrase);
	public Object exec(String sql);
	public Message beginTransaction();
	public Message commit();
	public Message close();
	public Message flush();
}
